package edu.hebeu.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.time.LocalTime;
import java.util.Date;
@TableName("overtime")
public class Overtime  extends Model {
    @TableId
private  Integer id;
private  Integer departmentNumber;
private  Integer employeeNumber;
private Date day;
private LocalTime  startTime;
private  LocalTime endTime;
private  String notes;

@TableField(exist = false)
private Department department;
@TableField(exist = false)
private  Employee employee;
public  void  setEmployee(Employee employee){
    this.employee=employee;
}
public  Employee getEmployee(){
    return  employee;
}

public  void  setDepartment(Department department){
    this.department=department;
}
public  Department getDepartment(){
    return department;
}


public  void  setId(Integer id){
    this.id=id;
}
public  Integer getId(){
    return  id;
}
public  void  setDepartmentNumber(Integer departmentNumber){
    this.departmentNumber=departmentNumber;
}
public  Integer getDepartmentNumber(){
    return  departmentNumber;
}
public  void  setEmployeeNumber(Integer employeeNumber){
    this.employeeNumber=employeeNumber;
}
public Integer getEmployeeNumber(){
    return employeeNumber;
}
public  void  setDay(Date day){
    this.day=day;
}
public  Date getDay(){
    return day;
}
public  void  setStartTime(LocalTime startTime){
    this.startTime=startTime;
}
public  LocalTime getStartTime(){
    return startTime;
}
public void  setEndTime(LocalTime endTime){
    this.endTime=endTime;
}
public  LocalTime getEndTime(){
    return  endTime;
}
public void  setNotes(String notes){
    this.notes=notes;
}
public  String getNotes(){
   return notes;
}


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}


